import React from 'react';
import ArticleList from './components/ArticleList/index';
import Channel from './components/Channel';
import { useAppSelector } from '@/store';

export default function Home() {
  const { userChannelList } = useAppSelector((state) => state.channel);
  return (
    <div>
      <Channel />
      {userChannelList.map((item) => (
        <ArticleList id={item.id} key={item.id} />
      ))}
    </div>
  );
}
